//导入模块
let http = require('http');
//创建一个httpserver服务
http.createServer(function (request, response) {
    //
    response.writeHead(200, {'Content-type': 'text/html'});
    //给浏览器输出内容
    response.end('<strong>hello server</strong>');
}).listen(8888);
//监听8888端口
//启动运行服务 node httpserver.js
//在浏览器访问http://localhost:8888/
console.log("启动成功");
